{template "content","header"}

<div class="content w980">
    <div class="product">
        <h2>QQ号码筛选</h2>
        <div class="product-filter">
            <form method="get" action="{APP_PATH}index.php">
                <p>
                    <b class="title">发货方式：</b>
                    <select name="ship" class="from-control">
                        <option value="1" {if $_GET['ship'] == 1 || empty($_GET['ship'])} selected {/if}>全部</option>
                        <option value="2" {if $_GET['ship'] == 2} selected {/if}>随机自动发货</option>
                        <option value="3" {if $_GET['ship'] == 3} selected {/if}>随机手动发货</option>
                        <option value="4" {if $_GET['ship'] == 4} selected {/if}>QQ选号</option>
                    </select>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <b class="title">号码位数：</b>
                    <select name="num_type" class="from-control">
                        <option value="0" {if $_GET['num_type'] == 0 || empty($_GET['num_type'])} selected {/if}>全部</option>
                        <option value="1" {if $_GET['num_type'] == 1} selected {/if}>5位</option>
                        <option value="2" {if $_GET['num_type'] == 2} selected {/if}>6位</option>
                        <option value="3" {if $_GET['num_type'] == 3} selected {/if}>7位</option>
                        <option value="4" {if $_GET['num_type'] == 4} selected {/if}>8位</option>
                        <option value="5" {if $_GET['num_type'] == 5} selected {/if}>9位</option>
                        <option value="6" {if $_GET['num_type'] == 6} selected {/if}>10位</option>
                    </select>
                </p>
                <p>
                    <b class="title">号码等级：</b>
                    <select name="level_type" class="from-control">
                        <option value="0" {if $_GET['level_type'] == 0 || empty($_GET['level_type'])} selected {/if}>全部</option>
                        <option value="1" {if $_GET['level_type'] == 1} selected {/if}>0-3级</option>
                        <option value="2" {if $_GET['level_type'] == 2} selected {/if}>4-7级</option>
                        <option value="3" {if $_GET['level_type'] == 3} selected {/if}>8-15级</option>
                        <option value="4" {if $_GET['level_type'] == 4} selected {/if}>16-31级</option>
                        <option value="5" {if $_GET['level_type'] == 5} selected {/if}>32-47级</option>
                    </select>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <b class="title">号码Ｑ龄：</b>
                    <select name="year_type" class="from-control">
                        <option value="0" {if $_GET['year_type'] == 0 || empty($_GET['year_type'])} selected {/if}>全部</option>
                        <option value="1" {if $_GET['year_type'] == 1} selected {/if}>1-3年</option>
                        <option value="2" {if $_GET['year_type'] == 2} selected {/if}>4-6年</option>
                        <option value="3" {if $_GET['year_type'] == 3} selected {/if}>7-10年</option>
                        <option value="4" {if $_GET['year_type'] == 4} selected {/if}>10年以上</option>
                    </select>
                </p>
                <p>
                    <b class="title">号码类型：</b>
                    <select name="type" class="from-control">
                        <option value="0" {if $_GET['type'] == 0 || empty($_GET['type'])} selected {/if}>全部</option>
                        <option value="1" {if $_GET['type'] == 1} selected {/if}>令牌</option>
                        <option value="2" {if $_GET['type'] == 2} selected {/if}>未过滤</option>
                    </select>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="submit" class="btn btn-submit" value="搜&nbsp;索">
                </p>
            </form>
        </div>
        <div class="product-list">
            <p>购买流程：点击购买(填写数量、联系QQ)→扫码付款→自动跳转到发货页面→点击下载号码即可！</p>
            <ul>
                {pc:goods action="lists" ship="$ship" number="$number" level="$level" year="$year" type="$type"}
                {loop $data $val}
                    <li>
                        <div class="fl">
                            <p><a href="{APP_PATH}goods-buy-{$val['id']}.html">{$val['name']}</a></p>
                            <p>发货方式：<i>{if $val['ship'] == 1} 全部 {elseif $val['ship'] == 2} 随机自动发货 {elseif $val['ship'] == 3} 随机手动发货 {elseif $val['ship'] == 4} QQ选号 {/if}</i> 库存：<i>{$val['reserve']}</i>  单价：<i>{$val['price']}</i></p>
                        </div>
                        <div class="fr">
                            <a href="{APP_PATH}goods-buy-{$val['id']}.html" class="pay">立即购买</a>
                        </div>
                    </li>
                {/loop}
                {/pc}
            </ul>
        </div>
    </div>
</div>

{template "content","footer"}